package com.smart.store.repository;

import com.smart.store.model.entity.VacationEntity;
import com.smart.store.model.entity.WishEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface WishRepository  extends JpaRepository<WishEntity, String> {

    WishEntity getByWishId(String wishId);

    List<WishEntity> getAllByStatus(int status);

    @Query("select wish from WishEntity wish where wish.status = 0 or wish.status= 1")
    List<WishEntity> getWishNotComplete();
}
